home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4371 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  931 b 

  1. Path: engnews2.Eng.Sun.COM!usenet
  2. From: ball@Eng.Sun.COM (Mike Ball)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Sun compiler bug?
  5. Date: 29 Jan 1996 23:45:35 GMT
  6. Organization: Sun Microsystems Inc.
  7. Message-ID: <4ejm6v$3ok@engnews2.Eng.Sun.COM>
  8. References: <4ejgfl$938@sun132.spd.dsccc.com>
  9. Reply-To: ball@Eng.Sun.COM
  10. NNTP-Posting-Host: cygany.eng.sun.com
  11.  
  12. In article 938@sun132.spd.dsccc.com, kcline@sun132.spd.dsccc.com (Kevin Cline) writes:
  13. > The Sun version 4 compiler won't compile this:
  14. >     class X {
  15. >       typedef int T;
  16. >     };
  17. >     enum E { T = 0 };
  18. > It complains:
  19. >     "foo.C", line 5: Error: Multiple declaration for T.
  20.  
  21. It's a known bug, an artifact of an attempt to be backward compatible with
  22. cfront 2.0 :-(  Unfortunately, it was discovered too late to make it into
  23. the recent 4.1 release.  It's been there for years, now suddenly it gets
  24. discovered twice within a couple of months.  Sigh.....
  25.  
  26. -Mike Ball-
  27.  
  28.